home *** CD-ROM | disk | FTP | other *** search
- On the down side, this is my first experience hooking up a modem
- to a Unix box. On the upside, I have been working with the
- very helpful document by Syed Hosain I found in
- http://www.aha.ru/file/zyxel/mirror/zyx_sun.ps.Z, and I am on exactly
- the same system: an IPX running SunOS 4.1.3. I followed
- the instructions to
-
- # eeprom ttya-ignore-cd=false
- # eeprom ttya-rts-dtr-off=true
- # fastboot
-
- but after that the attempt to echo commands to the modem, e.g.:
-
- % (stty 38400 ; echo "AT&FS0=1&W") > /dev/ttya
-
- hung until I turned the modem off. A lot of experimentation later,
- I found that the command "ttysoftcar" returned "y" for ttyb (not
- hooked up to anything) but hung for ttya even when the cable was
- unplugged from the modem. When I unplugged the other end of the
- cable from the Sun, however, the command completed, and returned "n".
- I set it to "y" and plugged the modem back in and now ttysoftcar
- commands return, and the echo doesn't hang.
-
- However, it doesn't appear to be working, either. If I do
-
- % (stty 38400 ; echo "ATDT42246") > /dev/ttya
-
- the TXD and RXD flash briefly on the modem, but that's all. If I
- just do
-
- % echo "ATDT42246" > /dev/ttya
-
- then it does dial the number, but only about half the time - the
- other half of the time (at random) it returns without doing anything.
-
- I suspect some sort of synchronization/data overrun problem. If I
- look at the ttya entries in the output from "eeprom", I see:
-
- ttya-rts-dtr-off=true
- ttya-ignore-cd=false
- ttya-mode=9600,8,n,1,-
-
- Now, the 9600 there is the default, and Syed's document said
- nothing about changing it, but did say that the modem should be
- run at 38400 and that the AT&FS0=1&W command would leave it at
- that DTE rate.
-
- I am able to tip to ttya with an /etc/remote entry of
-
- hwtest1:\
- :dv=/dev/cua0:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
-
- and typing the ATDT command causes the number to be dialled every
- time. It also works if I change the br to 38400.
-
- I've tried running the "reply" program and the results are random -
- the program hangs at different places and leaves the line open.
- Sometimes it got a slightly mangled version of what it was expecting;
- e.g., it was expecting "VCON" and got "V..N", where the two middle
- characters were 8-bit garbage.
-
- After reboot I found that ttysoftcar for ttya had changed back to n,
- but this time it didn't hang even though the modem was connected.
-
- How do I make the setting of ttysoftcar persistent? Should I change
- the baud rate in the eeprom ttya-mode setting? Should I also change
- the handshake in the same setting from "off" (other alternatives: hardware
- rts/cts, software xon/xoff)? Why does tip work at 38400 but echo doesn't
- when stty is used to set the speed? Is there anywhere else I should
- RTFM?
-
- --
- This is news. This is your | Peter Scott, NASA/JPL/Caltech
- brain on news. Any questions? | (Peter.J.Scott@jpl.nasa.gov)
-